﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace Tebbee.Business.Server
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IProductSer" in both code and config file together.
    [ServiceContract]
    public interface IProductSer
    {
        [OperationContract]
        int AddNewProduct(Product product);

        [OperationContract]
        ICollection<Product> ListProducts(int startRow, string searchString);

        [OperationContract]
        ICollection<Product> AllProducts();

        [OperationContract]
        int EditProduct(Product product);

        [OperationContract]
        int DeleteProduct(int id);

        [OperationContract]
        Product GetProductById(int id);
    }
}
